#pragma once
#include "global.h"
#include "Socket.h"
#include "Jpeg2RgbScreen.h "

#define  WM_MSG_ACCEPT WM_USER +110

class __declspec(dllexport) DeskTopS
{
public:
	DeskTopS(void){};
public:
	~DeskTopS(void){};
	int start(char* ip,int port);
	static void CALLBACK threadWork_1(SOCKET s);
	static int Auth(SOCKET client,unsigned int channelID);;
	static ScreenHeader m_screenHeader;
	static void  setHwnd(HWND hwnd);
	static HWND m_hWnd;
private:
	Socket client;
};
